//
//  DetailPicturesCollectionViewCell.m
//  BeanTrip
//
//  Created by dlios on 15-7-6.
//  Copyright (c) 2015年 PandaGroup. All rights reserved.
//

#import "DetailPicturesCollectionViewCell.h"
#define WIDTH self.contentView.frame.size.width/375
#define HEIGHT self.contentView.frame.size.height/667
@implementation DetailPicturesCollectionViewCell
- (void)dealloc
{
    [_detailPictureImage release];
    [super dealloc];
}

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        //1.在item里设置图片的位置
        self.detailPictureImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 375*WIDTH,667*HEIGHT)];
        [self.contentView addSubview:self.detailPictureImage];
        
        self.detailPictureImage.layer.masksToBounds = YES;
        self.detailPictureImage.backgroundColor = [UIColor yellowColor];
    
        [_detailPictureImage release];
       
    }
    return self;
}


@end
